// pages/new-task/index.js

const app = getApp();
const { AskPage } = app._require("common/index");
const formMixin = app._require("mixins/form.mixin.js").default;
AskPage({

  /**
   * 页面的初始数据
   */
  mixins: [formMixin],
  data: {

    taskTypeValue: "past",
    taskTypeList: [
        // { label: "今日待办", value: "today", state: "0" },
        // { label: "往日待办", value: "past", state: "1" },
        // { label: "即将到期", value: "expiring", state: "2" },
        // { label: "验收未通过", value: "failed", state: "3" },
        // { label: "待开始", value: "today", state: "0" },
        { label: "未读", value: "past", state: "1" },
        { label: "已读", value: "expiring", state: "2" },
        { label: "我发起的", value: "my_do", state: "3" },
    ],
    taskList:["重要","紧急","重要且紧急","一般",]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },
  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  },
  clickItems(e){
    let index = e.currentTarget.dataset.index;
    wx.navigateTo({
      url: '../plugins/task-person-list/details/index',
    })
    // console.log(index);

  },
  putTask:function(){
    // console.log("weee");
    wx.navigateTo({
      url: '../plugins/task-person-list/index',
    })
  }
})